"use strict";

import Vue from "vue";
import Vuex from "vuex";
import createLogger from 'vuex/dist/logger'
import * as Common from "./modules/common";
import * as Home from "./modules/home";
import * as Login from "./modules/login";
import * as Advertisement from "./modules/advertisement";

Vue.use(Vuex);

export default new Vuex.Store({
    strict: true,
    state: {
        ...Common.state,
        ...Home.state,
        ...Login.state,
        ...Advertisement.state
    },
    actions: {
        ...Common.actions,
        ...Home.actions,
        ...Login.actions,
        ...Advertisement.actions

    },
    getters: {
        ...Common.getters,
        ...Home.getters,
        ...Login.getters,
        ...Advertisement.getters
    },
    mutations: {
        ...Common.mutations,
        ...Home.mutations,
        ...Login.mutations,
        ...Advertisement.mutations
    }
});
